/**
 * MeetSummary.java
 */
package com.prs.crm.domain.meeting;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Dept;
import com.prs.crm.domain.hr.Person;

/**
 * @author ZhuDongMei
 * @E-mail:1223984339@qq.com
 * @qq:1223984339
 * @version 创建时间：2011-3-16 上午11:12:28 简单说明
 */
@Entity
@Table(name="meet_summary")
public class MeetSummary extends BaseEntity {

	/**
	 * 会议纪要
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 会议纪要编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
	private String name;
	

	/**
	 * 会议纪要内容
	 */
	@Lob
    private String context;
	/**
	 * 会议结束时间
	 */
	private Date endTime;
	/**
	 * 主办部门
	 */
	@ManyToOne
	private Dept dept;
	/**
	 * 附件
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@Cascade({org.hibernate.annotations.CascadeType.ALL,org.hibernate.annotations.CascadeType.DELETE_ORPHAN})
	private Attachment attach;
	@Column(name="meetSummary_file")
	private String meetSummary_file;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Attachment getAttach() {
		return attach;
	}
	public void setAttach(Attachment attach) {
		this.attach = attach;
	}
	public String getMeetSummary_file() {
		return meetSummary_file;
	}
	public void setMeetSummary_file(String meetSummaryFile) {
		meetSummary_file = meetSummaryFile;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
    
}
